package com.huawei;

import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;

public class Ch01 {

    public static void main(String[] args) throws  Exception {

        File file = new File("C:/Users/86186/IdeaProjects/io-demo/src/main/resources/db.properties");
        OutputStream os =new FileOutputStream(file);

        String driver="mysql.driver=com.mysql.cj.jdbc.Driver";

        byte[] xy = driver.getBytes();

        os.write(xy);

        os.close();

    }
}
